
//
//  QryMovieDetailResponse.m
//  EasyToo
//
//  Created by zhengzhe on 13-8-25.
//
//

#import "QryMovieDetailResponse.h"
#import "DetailMovieInfo.h"

@implementation QryMovieDetailResponse

- (void)parse
{
    [super parse];
    
    if (self.bodyDict)
    {
        self.movieDetailArray = [[NSMutableArray alloc] init];
        
        NSArray *movieJsonArray = GetDictionaryArrayDefaultNil(self.bodyDict, @"cinemas");
        for (int i = 0; i < [movieJsonArray count]; i++)
        {
            NSDictionary *movieInfoJson = [movieJsonArray objectAtIndex:i];
            DetailMovieInfo *movieInfo = [[DetailMovieInfo alloc] initWithDictionary:movieInfoJson];
            
            [self.movieDetailArray addObject:movieInfo];
            
            [movieInfo release];
        }
    }
}


@end
